package propertiesSelection;

import java.util.Vector;

public class JTreeVector<E> extends Vector<E> {
	String titleOfRoot;

	JTreeVector(String titleOfRoot) {
		this.titleOfRoot = titleOfRoot;
	}

	JTreeVector(String titleOfRoot, E elements[]) {
		this.titleOfRoot = titleOfRoot;

		if(elements!=null){
			for (int i = 0, n = elements.length; i < n; i++) {
				add(elements[i]);
			}
		}
	}

	@Override
	public synchronized String toString() {
		return titleOfRoot;
	}
}
